//
//  NativeSecondVC.m
//  FlutterMix
//
//  Created by 许龙 on 2019/3/6.
//  Copyright © 2019 qd. All rights reserved.
//

#import "NativeSecondVC.h"

@interface NativeSecondVC ()

@end

@implementation NativeSecondVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    if (self.navigationController != nil) {
        UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(backAction)];
        self.navigationItem.leftBarButtonItem = backItem;
    }
}

- (IBAction)clickSecondNative:(UIButton *)sender {
    NSLog(@"我是第二个原生本地的页面");
}


- (IBAction)clickDismiss:(UIButton *)sender {
    [self backAction];
}

- (void)backAction{
    if (self.navigationController != nil) {
        [self.navigationController popViewControllerAnimated:YES];
    }else {
        [self dismissViewControllerAnimated:YES completion:nil];
    }
}

@end
